package com.github.xuemingyu.springboot.jkfaststart.controller.admin.view.role;

import com.bidanet.springmvc.demo.jkbuilder.annotation.JkForm;
import com.bidanet.springmvc.demo.jkbuilder.annotation.JkFormField;
import com.bidanet.springmvc.demo.jkbuilder.annotation.JkTitle;
import com.bidanet.springmvc.demo.jkbuilder.annotation.JkVerify;
import com.bidanet.springmvc.demo.jkbuilder.annotation.ext.JkTextFormField;
import com.bidanet.springmvc.demo.jkbuilder.annotation.type.JkVerifyType;
import com.bidanet.springmvc.demo.jkbuilder.type.impl.HiddenFormFieldImpl;
import lombok.Data;

@Data
@JkForm(url = "./save")
public class AddRoleView {

    @JkFormField(type = HiddenFormFieldImpl.class)
    private Long id;

    @JkTitle("角色名称")
    @JkTextFormField
    @JkVerify(rules = {JkVerifyType.required})
    private String name;

    @JkTitle("角色信息")
    @JkTextFormField
    @JkVerify(rules = {JkVerifyType.required})
    private String info;
}
